public class PrototypePatternDemo implements Cloneable {

    @Override
    public PrototypePatternDemo clone() {
        try {
            return (PrototypePatternDemo) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new AssertionError();
        }
    }
}
